﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace FridgeManagerApp
{
    public class LDistrict : WDistrict
    {
        private bool isChoose;
        public bool IsChoose
        {
            get
            {
                return isChoose;
            }
            set
            {
                isChoose = value;
                RaisePropertyChanged("IsChoose");
            }
        }

        private String cityName;
        public String CityName
        {
            get
            {
                return cityName;
            }
            set
            {
                cityName = value;
                RaisePropertyChanged("CityName");
            }
        }

        private String citySelected;
        public String CitySelected
        {
            get
            {
                return citySelected;
            }

            set
            {
                citySelected = value;
                RaisePropertyChanged("CitySelected");
            }
        }

        private ObservableCollection<String> cities = new ObservableCollection<String>();
        public ObservableCollection<String> Cities
        {
            get
            {
                return cities;
            }

            set
            {
                cities = value;
                RaisePropertyChanged("Cities");
            }
        }

        public LDistrict()
        {
            IsChoose = false;
            DistrictUID = -1;
            DistrictName = "";
            PersonnelUID = -1;
            CityUID = -1;
            CitySelected = CityName;
            Person = new WPersonnel();
        }
    }
}
